package two_xia.ex5.Demo02;

public class Client {
    public static void main(String[] args) {
        Address a = new Address("福建省福州市");
        Customer c1 = new Customer("小明", a);
        Customer c2 = (Customer) c1.clone();
        System.out.println("c1是" + c1);
        System.out.println("c2是" + c2);
        c1.setName("小红");
        a.setAddress("广东省广州市");
        System.out.println("修改后c1是" + c1);
        System.out.println("修改后c2是" + c2);
    }
}